<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
	<meta name="decorator" content="sysDefault"/>
	
<script type="text/javascript">
function getUrl(url){ 
	  $("#versionFrame").attr("src",url);
}
</script>
</head>
<body>
	<div class="panel panel-default"> 
	  <div class="col-xs-12 panel-heading">
	    <h2 class="panel-title o-v-action">
	    	<a class="btn btn-default pull-right" role="button" href="javascript:void(0)" onclick="history.go(-1)">返回</a>
	    	<a class="btn btn-danger pull-right" role="button" href="${contextPath}/sys/msg/${obj.itemId}/delete" onclick="return Oosp_Confirm('确认要删除该条数据吗？', this.href)">删除</a>
	    	<c:if test="${!obj.isConfirm}">
	    		<a class="btn btn-info pull-right" role="button" href="${contextPath}/sys/msg/${obj.itemId}/markRead">确认已读</a>
	    	</c:if>
	    </h2>
	  </div> 
	  <div>
			<div class="tab-content">
			  <div class="tab-pane active" id="home">
				  	<table class="table table-bordered">
					  <tbody>
					  	<tr>
					  		<td class="text-right" style="width: 20%"><strong>标题</strong></td>
					  		<td><a href="${obj.titleLink}">${obj.title }</a></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>发起人</strong></td>
					  		<td>${obj.createBy }</td>
					  	</tr> 
					  	<tr>
					  		<td class="text-right"><strong>待办人</strong></td>
					  		<td>${obj.receivedBy}</td>
					  	</tr> 
					  	<tr>
					  		<td class="text-right"><strong>发起时间:</strong></td>
					  		<td><fmt:formatDate value="${obj.createDate }" pattern="yyyy-MM-dd"/></td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>内容:</strong></td>
						  	<c:if test="${obj.contentTypeFlag == 0 }">
							  		<td>${obj.content }</td>
							</c:if>
							<c:if test="${obj.contentTypeFlag == 1 }">
								<td>
									<iframe frameborder=0 width=100% height=100% marginheight=0 marginwidth=0 
										 src="${obj.url}">
									</iframe>
								</td>
							</c:if>
					  	</tr>
					  	<%-- <tr>
					  		<td class="text-right"><strong>标题连接:</strong></td>
					  		<td>${obj.titleLink}</td>
					  	</tr> --%>
					  	<tr>
					  		<td class="text-right"><strong>消息类型:</strong></td>
					  		<td>${obj.messageType}</td>
					  	</tr>
					  	<tr>
					  		<td class="text-right"><strong>来源:</strong></td>
					  		<td>${obj.source}</td>
					  	</tr>
					  </tbody>
					</table>
					<div class="panel-footer"></div>
				 </div>
				 <div class="tab-pane" id="history">
					<iframe id="versionFrame"   name="versionFrame"  
									scrolling="no" frameborder="no" width="100%"></iframe>
				 </div>
			</div> 
		</div> 
	</div>	
</body>
</html>